﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace HdipCricketClub.Models
{
    [MetadataType(typeof(TeamMetaData))]
    public partial class Team
    {
    }

    public class TeamMetaData
    {
        [Required(ErrorMessage = "Name is required.")]
        [StringLength(50, ErrorMessage = "Maximum name length is 50 characters")]
        [Display(Name = "Name:")]
        public object name;
    }

}